package tech.aistar.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import tech.aistar.pojo.User;

import java.util.List;

@Mapper
public interface UserMapper {

    List<User> findAll();

    void save(User user);

    void upDate(User user);

    void delById(Integer id);

    @Select("select * from user where username=#{value}")
    User findByUsername(String username);
}
